
import 'class-transformer'
import { Expose } from 'class-transformer';

export class UserInfo{
  @Expose({ name: 'user_name' })
    userName:string = '';

  @Expose({ name: 'password' })
    password:string = '';

  @Expose({ name: 'avatar_url' })
    avatarUrl:string = '';

  @Expose({ name: 'role' })
    role:string = '';

  get params(){
    return {
      user_name : this.userName,
      avatar_url : this.avatarUrl,
      role:this.role
    }
  }
}
